import time
import tkinter
import tkinter.messagebox
from threading import Thread


def mian():
    class Download(Thread):
        def run(self):
                time.sleep(10)
                tkinter.messagebox.showinfo('提示','下载完成')
                #启用下载按钮
                button1.config(state=tkinter.NORMAL)
